import request from '@/utils/request'

// 查询工程审核列表
export function listEngineering(query) {
  return request({
    url: '/quotation/engineering/list',
    method: 'get',
    params: query
  })
}

// 查询工程审核详细信息
export function getEngineering(id) {
  return request({
    url: '/quotation/engineering/' + id,
    method: 'get'
  })
}

// 新增工程审核
export function addEngineering(data) {
  return request({
    url: '/quotation/engineering',
    method: 'post',
    data: data
  })
}

// 修改工程审核
export function updateEngineering(data) {
  return request({
    url: '/quotation/engineering',
    method: 'put',
    data: data
  })
}

// 删除工程审核
export function delEngineering(ids) {
  return request({
    url: '/quotation/engineering/' + ids,
    method: 'delete'
  })
}

// 执行工程审核
export function auditEngineering(data) {
  return request({
    url: '/quotation/engineering/audit',
    method: 'post',
    data: data
  })
}

// 导出工程审核
export function exportEngineering(query) {
  return request({
    url: '/quotation/engineering/export',
    method: 'post',
    params: query
  })
} 